package com.qa.dao;

import com.qa.pojo.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface CommentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Comment record);

    Comment selectByPrimaryKey(Integer id);

    List<Comment> selectAll();

    int updateByPrimaryKey(Comment record);

    List<Comment> getByArticleId(Integer id);

    List<Comment> getByCommentId(Integer id);

    List<Comment> getByComment(String comment);

    int updateStatus(@Param("id") Integer id, @Param("status") Integer status);

    int getCount(@Param("beginTime") String beginTime,@Param("endTime") String endTime);
}